#include <iostream>
using namespace std;

class Person
{
public:
    Person()
    {
        m_age= 1;
    }
    /* 有参构造 */
    Person(int age,int height):m_age(age),m_height(height){}
    
public:
    void setAge(int age)//接口给m_age赋值
    {
        m_age = age;
    }
    int getAge()
    {
        return m_age;
    }

    void show()
    {
        cout<<m_age<<m_height<<endl;
    }

private:
    int m_age;
    int m_height;
};

int main()
{
    Person person;

    person.setAge(22);
    cout<<person.getAge()<<endl;
    return 0;
}